var app = getApp(), until = require("../../utils/util.js");

Page({
    data: {
        people: 9,
        erweima: "",
        haibaobj: "",
        t_status: !1,
        current: 0
    },
    getform: function(t) {
        console.log(t), app.util.request({
            url: "entry/wxapp/Formid",
            data: {
                openid: wx.getStorageSync("openid"),
                formid: t
            },
            success: function(t) {}
        });
    },
    saveimg: function(t) {
        var e = this;
        wx.canvasToTempFilePath({
            x: 0,
            y: 0,
            canvasId: t,
            success: function(a) {
                wx.showModal({
                    title: "提示",
                    content: "确定保存该图片",
                    success: function(t) {
                        t.confirm && wx.saveImageToPhotosAlbum({
                            filePath: a.tempFilePath,
                            success: function(t) {
                                wx.showToast({
                                    title: "保存成功"
                                }), setTimeout(function() {
                                    e.setData({
                                        t_status: !1,
                                        t_status2: !1
                                    });
                                }, 1e3);
                            }
                        });
                    }
                });
            }
        });
    },
    onLoad: function(t) {
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});